//
//  AlignCategoriesSystem.h
//  QuizMaster
//
//  Created by Jeppe Nielsen on 3/22/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//

#pragma once
#include "GameWorld.hpp"
#include "BoundingBox.hpp"
#include "CategoryComponent.hpp"
#include "Transform.hpp"

using namespace Nano;

class AlignCategoriesSystem : public GameSystem {
    public:
        void Initialize();
        void ObjectAdded(GameObject* object);
        void ObjectRemoved(GameObject* object);

        void Update(float dt);
    
        BoundingBox boundingBox;
    
    private:
    
        bool objectsNeedsAlignment;
        void MoveObject(GameObject* object, Vector3 position);
};